<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/DetailTemplate.master" Inherits="System.Web.Mvc.ViewPage<DotNetBurner.BaseViewData>" %>
<%@ Import Namespace="DotNetBurner" %>
<%@ Import Namespace="Resources" %>
<%@ Import Namespace="System.Web.Mvc" %>
<%@ Import Namespace="System.IO" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<div class="tab">
    <h1>Windows Live Writer Plug-In</h1>
</div>
<div class="box">
    <%string lastUpdated = SwissKnife.GetFileLastModifiedDate(Server.MapPath("~/Downloads/DotNetBurner.LiveWriterPlugIn.zip"));%>
    <%string downloadPath = Url.Content("~/Downloads/DotNetBurner.LiveWriterPlugIn.zip");%>
    <h2>To add the burn it badge on your blog posts:</h2>
    <ul>
        <li>Download the Windows Live Writer Plug-in <a href="<%=downloadPath%>" title="Windows Live Writer Plug-In" style="font-size: 110%">here</a> (last modified on <%=lastUpdated%>).</li>
        <li>To install it, copy the DotNetBurner.LiveWriterPlugIn.dll file to the Windows Live Writer Plugin folder, which is probably in C:\Program Files\Windows Live\Writer\Plugins.</li>
    </ul>
    <br />        
    <p><b>TIP:</b> You can also enable badges for <a href="http://www.dotnetkicks.com" title="DotNetKicks">DotNetKicks</a>, <a href="http://dotnetshoutout.com" title="DotNetShoutout">DotNetShoutout</a> and <a href="http://webdevvote.com" title="WebDevVote">WebDevVote</a> with this same plugin.</p>
</div>

<div class="tab">
    <h1>FeedBurner</h1>
</div>
<div class="box">
    <h2>To add the Burn It! feed flare on your feedburner feed:</h2>
    <ul>
        <li>Go to your feedburner account and click on the Optimize tab;</li>
        <li>Choose the FeedFlare option on the left listing;</li>
        <li>Scroll down to the "Personal FeedFlare" area and enter this link: <b>http://dotnetburner.com/Content/BurnItFlare.xml</b></li>
        <li>Click "Add New Flare";</li>
        <li>Check the two checkboxes next to "Burn It!";</li>
        <li>Done!</li>
    </ul>
</div>

<div class="tab">
    <h1>Burn link</h1>
</div>
<div class="box">
    <h2>To have a <a href="#">Burn!</a> link on your blog:</h2>
    <div class="integrate-code">
        <h2>simple</h2>
        <p>
            <%=Html.Encode("<a href=\"" + SiteSettings.Settings.Address + "/vote?url=YOUR_ARTICLE_ENCODED_URL\">Burn!</a>")%>
        </p>
    </div>
    <p>If the article was not submitted yet, the site will automatically redirect to the submit form and populate it for you!</p>
    <div class="integrate-code">
        <h2>with optional parameters</h2>
        <p>
            <%=Html.Encode ("<a href=\"" + SiteSettings.Settings.Address + "/vote?url=YOUR_ARTICLE_ENCODED_URL&title=TITLE&desc=DESC&tags=TAGS&category=CATEGORY\">Burn!</a>")%>
        </p>
    </div>
    <ul style="list-style: square inside">
        <li><b>TITLE:</b> the title of the article (Max = <%=StorySettings.Settings.MaxUrlSizeInChars %> chars);</li>
        <li><b>DESC:</b> the description of the article (Max = <%=StorySettings.Settings.MaxStoryDescSizeInChars%> chars);</li>
        <li><b>TAGS:</b> the tags, separated by comma (Max = <%=StorySettings.Settings.MaxTagsPerStory%> tags, <%=StorySettings.Settings.MaxTagSizeInChars%> chars each);</li>    
        <li><b>CATEGORY:</b> one of the site sub-categories (see on the top menu);</li>
    </ul>
    <br />
    <p>
        <b>ATTENTION: All parameters must be URL encoded.</b>
    </p>
</div>    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeaderPlaceHolder" runat="server">
    <link href="<%=Html.Content("Integrate.css")%>" rel="stylesheet" type="text/css" />
</asp:Content>
